﻿@model liaowa2.Entity.DTO.ManagerUser
@{
    ViewBag.Title = "用户编辑列表";
}

<form method="post" action="/ManagerUser/Edit" id="form1">
    <!--导航栏-->
    <div class="location">
        <a href="/ManagerUser/Index" class="back"><i></i><span>返回列表页</span></a>
        <a href="/home/center" class="home"><i></i><span>首页</span></a>
        <i class="arrow"></i>
        <a href="#"><span>人员添加</span></a>

    </div>
    <div class="line10"></div>
    <!--/导航栏-->
    <!--内容-->
    <div id="floatHead" class="content-tab-wrap" style="height: 42px;">
        <div class="content-tab" style="width: 1139px; position: static; top: 52px;">
            <div class="content-tab-ul-wrap">
                <div class="tab-title"><span>人员信息</span><i></i></div><ul>
                    <li><a class="selected" href="javascript:;">人员信息</a></li>
                </ul>
            </div>
        </div>
    </div>
    @Html.Hidden("id",Model.id)
    <div class="tab-content">
        <dl>
            <dt>登陆账号</dt>
            <dd><input name="user_name" type="text" id="user_name" value="@Model.user_name" class="input normal" datatype="/^[0-9a-zA-Z]{6,60}$/" sucmsg="" /> <span class="Validform_checktip">*6-60位字母或数字</span></dd>
        </dl>
        <dl>
            <dt>登陆密码</dt>
            <dd>
                <input name="password" type="password" id="password" value="@(Model.password==""?"123456":Model.password)" class="input normal" datatype="" sucmsg="" /> <span class="Validform_checktip">*6-16位字母或数字</span>
            </dd>
        </dl>
        <dl>
            <dt>角色</dt>
            <dd>
                <div class="rule-single-select single-select">
                    <div class="boxwrap"><a class="select-tit" href="javascript:;"><span>请选择类型...</span><i></i></a><div class="select-items"><ul><li>财务</li><li>店铺店员</li></ul></div><i class="arrow"></i></div>
                    <select name="ddlRole" id="ddlRole" datatype="*" errormsg="请选择角色！" sucmsg="">
                        @foreach (var item in ViewBag.Role)
                        {
                            if (Model.role_id == item.id)
                            {
                                <option value="@item.id" selected="selected">@item.role_name</option>
                            }
                            else
                            {
                                <option value="@item.id">@item.role_name</option>
                            }
                        }
                    </select>
                </div>
            </dd>
        </dl>
        <dl>
            <dt>名称</dt>
            <dd><input name="real_name" type="text" id="real_name" value="@Model.real_name" class="input normal" datatype="*2-16" sucmsg="" /> <span class="Validform_checktip">*中英文名称</span></dd>
        </dl>
        <dl>
            <dt>手机号</dt>
            <dd><input name="telephone" type="text" id="telephone" value="@Model.telephone" class="input normal" datatype="*1-11" sucmsg="" maxlength="11" /> <span class="Validform_checktip">*11位有效手机号</span></dd>
        </dl>
        <dl>
            <dt>邮箱地址</dt>
            <dd><input name="email" type="text" id="email" value="@Model.email" class="input normal" datatype="e" sucmsg=""  /> <span class="Validform_checktip">*邮箱验证</span></dd>
        </dl>
    </div>
    <!--/内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap">
            <input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit" class="btn">
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);">
        </div>
    </div>
    <!--/工具栏-->
</form>

<script type="text/javascript">
    $(function (){

        //初始化表单验证
        $("#form1").initValidform();

    });
</script>
